package com.example.his.api.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.his.api.db.pojo.DeptEntity;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface DeptDao  extends BaseMapper<DeptEntity> {
    public ArrayList<HashMap> searchAllDept();

    public ArrayList<HashMap> searchByPage(@Param("deptName") String deptName);

    public int insert(DeptEntity dept);

    public HashMap searchById(int id);
    public int update(DeptEntity dept);
    public boolean searchCanDelete(Integer[] ids);
    public int deleteByIds(Integer[] ids);
}




